using Microsoft.AspNetCore.Mvc;
using SecondDemo.API.Services;

namespace SecondDemo.API.Controllers;

[ApiController]
[Route("api/[controller]")]
public class UserController : ControllerBase
{
    public UserService UserService {get;}
    public UserController(UserService userService)
    {
        UserService = userService;
    }
    [HttpGet]
    public string Get()
    {
        return UserService.GetUserName();
    }
}
